package cn.gok.common.entity.customer;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;


import java.util.Date;

/**
 * @author r: shikundai
 * @Time: 2020/9/26  10:05
 * @description: 顾客详细信息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("c_customer_info")
public class CustomerInfo {
    /**
     * Description:  消费者信息详情主键ID
     * @Author: shikundai
     * @date: 2020/10/10 14:30
     */
    //该注解是为了解决传数据到前端精度丢失问题
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "CUSTOMER_INF_ID",type = IdType.ASSIGN_ID)
    private Long customerInfId;
    /**
     * Description: 消费者ID
     * @author: shikundai
     * @date: 2020/10/10 14:30
     */
    @TableField("CUSTOMER_ID")
    private String customerId;
    /**
     * Description: 消费者用户名
     * @author: shikundai
     * @date: 2020/10/10 14:31
     */
    @TableField("CUSTOMER_NAME")
    private String customerName;
    /**
     * Description: 消费者真实姓名
     * @author: shikundai
     * @date: 2020/10/10 14:31
     */
    @TableField("REAL_NAME")
    private String realName;
    /**
     * Description: 证件类型：1 身份证，2 军官证，3 护照
     * @author: shikundai
     * @date: 2020/10/10 14:31
     */
    @TableField("IDENTY_CARD_TYPE")
    private Integer identyCardType;
    /**
     * Description: 证件号码
     * @author: shikundai
     * @date: 2020/10/10 14:31
     */
    @TableField("IDENTY_CARD_NO")
    private String identyCardNo;
    /**
     * Description: 手机号
     * @author: shikundai
     * @date: 2020/10/10 14:31
     */
    @TableField("USER_MOBILE")
    private String userMobile;
    /**
     * Description: 邮箱
     * @author: shikundai
     * @date: 2020/10/10 14:32
     */
    @TableField("EMAIL")
    private String email;

    /**
     * Description: 性别：0保密  1：女 2：男
     * @author: shikundai
     * @date: 2020/10/10 14:32
     */
    @TableField("GENDER")
    private Integer gender=0;
    /**
     * Description: 生日
     * @author: shikundai
     * @date: 2020/10/10 14:32
     */
    @TableField("BIRTHDAY")
    private String birthday;
    /**
     * Description: 所在城市
     * @author: shikundai
     * @date: 2020/10/10 14:32
     */
    @TableField("CITY")
    private String city;
    /**
     * Description: 用户积分
     * @author: shikundai
     * @date: 2020/10/10 14:33
     */
    @TableField("USER_POINT")
    private Integer userPoint=0;
    /**
     * Description: 注册时间
     * @author: shikundai
     * @date: 2020/10/10 14:33
     */
    @TableField("REGISTER_TIME")
    private Date registerTime;
    /**
     * Description: 是否删除 0：否 1：是
     * TableLogic 注解是逻辑删除
     * @author: shikundai
     * @date: 2020/10/10 14:33
     */
    @TableField("IS_DEL")
    @TableLogic(value = "0",delval = "1")
    private Integer isDel=0;
    /**
     * Description: 顾客状态：0 禁用 1：正常
     * @author: shikundai
     * @date: 2020/10/10 14:33
     */
    @TableField("CUSTOMER_STATUS")
    private Integer customerStatus;
    /**
     * Description: 会员级别 会员级别：1 普通会员，2 青铜，3白银，4黄金，5钻石
     * @author: shikundai
     * @date: 2020/10/10 14:33
     */
    @TableField("CUSTOMER_LEVEL")
    private Integer customerLevel=1;
    /**
     * Description: 用户余额
     * @author: shikundai
     * @date: 2020/10/10 14:34
     */
    @TableField("USER_BALANCE")
    private Integer userBalance;
    /**
     * Description: 备注
     * @author: shikundai
     * @date: 2020/10/10 14:34
     */
    @TableField("REMARK")
    private String remark;
    /**
     * Description: 最后更新时间
     * @author: shikundai
     * @date: 2020/10/10 14:34
     */
    @TableField("MODIFIED_TIME")
    private Date modifiedTime;

}
